HTMLify
style.css
Views: 3 | Author: cody
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
padding: 30px;
background-color: #eee;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.loading {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
}
.dot {
height: 20px;
width: 20px;
margin-right: 10px;
border-radius: 10px;
background-color: #b3d4fc;
animation: pulse 1.5s infinite ease-in-out;
}
.dot:last-child {
margin-right: 0;
}
.dot:nth-child(1) {
animation-delay: -0.3s;
}
.dot:nth-child(2) {
animation-delay: -0.1s;
}
.dot:nth-child(3) {
animation-delay: 0.1s;
}
@keyframes pulse {
0% {
transform: scale(0.8);
background-color: #b3d4fc;
box-shadow: 0 0 0 0 rgba(178, 212, 252, 0.7);
}
50% {
transform: scale(1.2);
background-color: #6793fb;
box-shadow: 0 0 0 10px rgba(178, 212, 252, 0);
}
100% {
transform: scale(0.8);
background-color: #b3d4fc;
box-shadow: 0 0 0 0 rgba(178, 212, 252, 0.7);
}
}
.watermark-ctr {
position: fixed;
bottom: 1.5rem;
right: 1.5rem;
z-index: 1000;
}
.watermark-ctr a {
text-decoration: none;
color: inherit;
display: flex;
}
.generate-button {
--generate-button-star-1-opacity: 0.25;
--generate-button-star-1-scale: 1;
--generate-button-star-2-opacity: 1;
--generate-button-star-2-scale: 1;
--generate-button-star-3-opacity: 0.5;
--generate-button-star-3-scale: 1;
--generate-button-dots-opacity: 0;
appearance: none;
outline: none;
border: none;
padding: 14px 24px 14px 20px;
border-radius: 29px;
margin: 0;
background-color: #222;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
position: relative;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
z-index: 1;
transform: scale(var(--generate-button-scale, 1)) translateZ(0);
box-shadow: 0 0 120px var(--generate-button-shadow-wide, transparent),
0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1),
inset 0 1px 1px
var(--generate-button-shadow-inset, rgba(255, 255, 255, 0.04)),
0 0 0 var(--generate-button-shadow-outline, 0px) rgba(109, 68, 244, 0.4);
transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.generate-button:before {
content: "";
display: block;
position: absolute;
right: 20%;
height: 20px;
left: 20%;
bottom: -10px;
background: #a86dff;
filter: blur(12.5px);
z-index: 2;
clip-path: inset(-200% -30% 10px -30% round 29px);
opacity: 0;
transition: opacity 0.4s;
transform: translateZ(0);
}
.generate-button span {
position: relative;
z-index: 1;
font-family: "Poppins", Arial;
font-weight: 600;
font-size: 16px;
letter-spacing: 0.005em;
display: block;
}
.generate-button span:before {
content: "";
background-image: linear-gradient(to right, transparent, #1d1d1d);
position: absolute;
inset: 0;
z-index: 1;
pointer-events: none;
opacity: 0.4;
transition: opacity 0.4s;
}
.generate-button .stroke {
mix-blend-mode: hard-light;
}
.generate-button .stroke svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
fill: none;
stroke-width: 0.75px;
stroke: #e2d9ff;
stroke-dasharray: 1.5 14;
stroke-dashoffset: 22;
opacity: 0;
}
.generate-button .stroke svg:nth-child(2) {
stroke-width: 1px;
stroke-opacity: 0.5;
filter: blur(3px);
}
.generate-button svg {
display: block;
overflow: visible;
pointer-events: none;
}
.generate-button svg.dots {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 10;
fill: #d3b2ff;
opacity: var(--generate-button-dots-opacity);
}
.generate-button svg.icon {
width: 18px;
height: 20px;
margin-right: 10px;
fill: currentColor;
}
.generate-button svg.icon path:nth-child(1) {
opacity: var(--generate-button-star-1-opacity);
transform: scale(var(--generate-button-star-1-scale)) translateZ(0);
transform-origin: 25% 14.58%;
}
.generate-button svg.icon path:nth-child(2) {
opacity: var(--generate-button-star-2-opacity);
transform: scale(var(--generate-button-star-2-scale)) translateZ(0);
transform-origin: 60.42% 50%;
}
.generate-button svg.icon path:nth-child(3) {
opacity: var(--generate-button-star-3-opacity);
transform: scale(var(--generate-button-star-3-scale)) translateZ(0);
transform-origin: 25% 85.42%;
}
.generate-button:hover {
--generate-button-scale: 1.01;
--generate-button-shadow-wide: rgba(208, 173, 255, 0.4);
--generate-button-shadow-inset: rgba(255, 255, 255, 0.35);
--generate-button-shadow-outline: 3px;
color: #fff;
background-color: #6d44f4;
}
.generate-button:hover .stroke svg {
animation: stroke 2s linear infinite;
}
.generate-button:hover:before {
opacity: 1;
}
.generate-button:hover span:before {
opacity: 0;
}
.generate-button:hover:active {
--generate-button-scale: 1.05;
}
@keyframes stroke {
0% {
opacity: 0;
}
25%,
75% {
opacity: 1;
}
95%,
100% {
stroke-dashoffset: 6;
opacity: 0;
}
}